<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<th:block th:fragment="m-menu">
<ul class="menu_sub">
    <li th:each="m: ${menus}">
        <div class="subTitle"><a th:href="${m.children != null && !m.children.isEmpty() ? '#' : m.href}"  th:text="${m.title}"></a></div>
        <div class="subbox" th:if="${m.children != null && !m.children.isEmpty()}">
            <a th:href="${ch.href}" th:each="ch: ${m.children}" th:text="${ch.title}"></a>
        </div>
    </li>
</ul>
</th:block>
</html>